<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\belongsTo;

class Article extends BaseModel
{
    protected $table = 'blog_articles';

    public function author(): belongsTo
    {
        return $this->belongsTo(Author::class);
    }

    public function category(): belongsTo
    {
        return $this->belongsTo(Category::class);
    }
}
